package fr.upstlse.glre.client.vo.user;

import java.util.HashMap;
import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;


public enum UserRoleVOGWT implements IsSerializable {

	/**
     * 
     */
    ETUDIANT("ETUDIANT"),
    ADMIN("ADMIN"),
    PROFESSEUR("PROFESSEUR"),
    ENTREPRISE("ENTREPRISE"),
    SECRETAIRE("SECRETAIRE");

	private String value;
	
	private static Map<String, UserRoleVOGWT> userRoleVOGWTs = new HashMap<String, UserRoleVOGWT>();

	private UserRoleVOGWT(String pValue) {
		value = pValue;
	}

	/**
	 * Gets the underlying value of this type safe enumeration.
	 *
	 * @return the underlying value.
	 */
	public String getValue() {
		return this.value;
	}

    public static Map<String, UserRoleVOGWT> getUserRoleVOGWTs() {
		return userRoleVOGWTs;
	}

	/**
     * Initializes the values.
     */
    static
    {
    	UserRoleVOGWT.userRoleVOGWTs.put(ETUDIANT.getValue(), ETUDIANT);
    	UserRoleVOGWT.userRoleVOGWTs.put(PROFESSEUR.getValue(), PROFESSEUR);
    	UserRoleVOGWT.userRoleVOGWTs.put(ADMIN.getValue(), ADMIN);
    	UserRoleVOGWT.userRoleVOGWTs.put(SECRETAIRE.getValue(), SECRETAIRE);
    	UserRoleVOGWT.userRoleVOGWTs.put(ENTREPRISE.getValue(), ENTREPRISE);
    }


}
